package com.stone.stoneanswer.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stone.stoneanswer.model.dto.post.PostQueryRequest;
import com.stone.stoneanswer.model.dto.question.QuestionGetRequest;
import com.stone.stoneanswer.model.entity.Post;
import com.stone.stoneanswer.model.entity.Question;
import com.stone.stoneanswer.model.vo.AnswerResultVO;
import com.stone.stoneanswer.model.vo.QuestionVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
* @author 35431
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2025-02-04 15:21:01
*/
public interface QuestionService extends IService<Question> {

    QuestionVO getQuestionVO(Question question, HttpServletRequest request);

    QueryWrapper<Question> getQueryWrapper(QuestionGetRequest questionGetRequest);

    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage, HttpServletRequest request);

    List<QuestionVO> getQuestionFromBank(Long bankId);

    List<QuestionVO> getQuestionFromBankByType(Long bankId, Integer type);
}
